package com.yfp.machine.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;

/**
 * (MachineRoad)实体类
 *
 * 
 * @since 2023-12-14 14:32:00
 */
@Schema(title = "货道管理")
public class MachineRoad implements Serializable {
    private static final long serialVersionUID = 737783433077104178L;

    private Long id;

    /**
     * 机器id
     */
    @Schema(title = "机器id")
    private String machineId;
    /**
     * 货道号
     */
    @Schema(title = "货道号")
    private String roadNo;
    /**
     * 套餐id
     */
    @Schema(title = "套餐id")
    private String comboId;
    /**
     * 线上库存
     */
    @Schema(title = "线上库存")
    private Integer inventory;
    /**
     * 最大库存
     */
    @Schema(title = "最大库存")
    private Integer capacity;
    /**
     * 上架时间
     */
    @Schema(title = "上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date onShelfTime;
    /**
     * 更新时间
     */
    @Schema(title = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    public String getMachineId() {
        return machineId;
    }

    public void setMachineId(String machineId) {
        this.machineId = machineId;
    }

    public String getRoadNo() {
        return roadNo;
    }

    public void setRoadNo(String roadNo) {
        this.roadNo = roadNo;
    }

    public String getComboId() {
        return comboId;
    }

    public void setComboId(String comboId) {
        this.comboId = comboId;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    public Date getOnShelfTime() {
        return onShelfTime;
    }

    public void setOnShelfTime(Date onShelfTime) {
        this.onShelfTime = onShelfTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}

